import {searchData} from '@/api/index'
export default {
    namespaced: true,
    actions:{
        seatch({commit},value){
            searchData(value).then(name => {
                commit('SEARCHDATA',name.data)
            })
        }  
    },
    mutations:{
        SEARCHDATA(state,value){
            state.searchResult = value;
        }
    },
    state:{
        searchResult:{}
    },
    getters:{//利用geeter简化数据
        
    }
}